//
//  ViewController.swift
//  PushDemo
//
//  Created by 袁量 on 2018/1/22.
//  Copyright © 2018年 JLM. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    
    @IBAction func localNotificationBtnTapped(_ sender: Any) {
        let ln = UILocalNotification()
        ln.alertBody = "这个就是一条推送消息！"
        ln.alertTitle = "本地推送"
        UIApplication.shared.scheduleLocalNotification(ln)
    }
    override func viewDidLoad() {
        super.viewDidLoad()
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

